<?php 

class Recursion{
	 //定义三个全局变量n,i,x
	 
	 $n,$i,$x;
    public  function ate(){
  
	for ($n=0; $n<0; $n++) { 
		if ($n=$i+$x) {
			echo $n;
		}
		else
		{
			echo "错误";
		}
    }
  }
  public function noate()
  {
      foreach ($n as $key => $i) {
      	if ($n=$i+1 && $n=$x+1) {
      		echo "$n";
      	}
      	else
      	{
      		echo "错误";
      	}
      }
  }

}
